package com.sailing.face.util;

import org.apache.commons.codec.binary.Base64;

public class CommonTools {

    public static String encodeStr(String plainText){
        byte[] b=plainText.getBytes();
        Base64 base64=new Base64();
        b=base64.encode(b);
        String s=new String(b);
        return s;
    }
}
